import pymysql

n=0
con= pymysql.connect(host= 'localhost',user= 'root',password= '',database='db3')
cursor= con.cursor()
cursor.callproc('p2',(1,n))
r1= cursor.fetchall()
print(r1)
cursor.execute('select @_p2_0,@_p2_1')
r2= cursor.fetchall()
print(r2)
print(n)

